<?php
//echo '<pre>';
//print_r($item_order);
//die;
?>
<ul class="list-group col-lg-5">
    <li class="list-group-item"><strong>id:</strong> <?php echo $item_order->id?></li>
    <li class="list-group-item"><strong>Họ Tên:</strong> <?php echo $item_order->fullname?></li>
    <li class="list-group-item"><strong>Địa Chỉ:</strong> <?php echo $item_order->address?></li>
    <li class="list-group-item"><strong>ĐT:</strong> <?php echo $item_order->telephone?></li>
    <li class="list-group-item"><strong>Email:</strong> <?php echo $item_order->email?></li>
    <li class="list-group-item"><strong>Phương Thức Thanh Toán</strong>: <?php echo $item_order->pay?></li>
    <li class="list-group-item"><strong>Thành tiền:</strong> <?php echo $item_order->money?></li>
    <li class="list-group-item"><strong>yêu Cầu Khác:</strong> <?php echo $item_order->order_different?></li>
    <li class="list-group-item"><strong>Thời gian đặt hàng:</strong> <?php echo $item_order->time?></li>
    <li class="list-group-item"><strong>Giao hàng:</strong> <?php echo Order::model()->checkStatus($value->status); ?></li>
    <li class="list-group-item"><strong>Khách Xác Nhận:</strong> <?php echo Order::model()->checkAuthentication($value->Authentication); ?></li>
    <a href="<?php echo Yii::app()->createUrl('admin/order/shipping',array('id'=>$item_order->id))?>" class="label label-success"><i class="glyphicon glyphicon-tag"> Giao Hàng </i></a>
    <a href="<?php echo Yii::app()->createUrl('admin/order/delorder',array('id'=>$item_order->id))?>" class="label label-success"><i class="glyphicon glyphicon-tag"> Xóa đơn hàng </i></a>
</ul>

<div class="col-lg-7">
    <div class="panel panel-default">
        <div class="panel-heading">
            Sản phẩm yêu cầu
        </div>
        <!-- /.panel-heading -->
        <div class="panel-body">
            <div class="table-responsive">
                <table class="table table-striped table-bordered table-hover">
                    <thead>
                    <tr>
                        <th>id sản phẩm </th>
                        <th>Tên Sản Phẩm</th>
                        <th>Ảnh Đại Diện</th>
                        <th>Số Lượng</th>
                        <th>Giá</th>
                        <th>Tạm Tính</th>
                    </tr>
                    </thead>
                    <tbody>
                    <?php
                    foreach ($order_detail as $key=> $value){ ?>
                        <tr>
                            <td><?php echo $value['id']?></td>
                            <td><?php echo $value['product_name']?></td>
                            <td><img style="width: 200px; height: 150px;" src="<?php echo $value['image']?>"> </td>
                            <td><?php echo $value['qty']?></td>
                            <td><?php echo $value['cost']?></td>
                            <td><?php echo $value['sumcost']?></td>
                        </tr>
                    <?php } ?>
                    </tbody>
                </table>
            </div>
            <!-- /.table-responsive -->
        </div>
        <!-- /.panel-body -->
    </div>
    <!-- /.panel -->
</div>